package com.chengliang.zuoye.service.impl;

import com.chengliang.zuoye.bean.WorkTask;
import com.chengliang.zuoye.mapper.WorkTaskMapper;
import com.chengliang.zuoye.service.WorkTaskService;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author chengliang
 * @Date 2019-06-25 22:51
 * @Description //TODO
 */
@Service
public class WorkTaskServiceImpl implements WorkTaskService {

    @Autowired
    private WorkTaskMapper workMapper;

    /**
     * 获取工作任务列表
     * @return
     */
    @Override
    public Page<WorkTask> getWorkList(Integer nowPage, Integer pageSize) {
        PageHelper.startPage(nowPage,pageSize);
        return (Page<WorkTask>) workMapper.selectWorkList();
    }
}
